<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script type="text/javascript">
	//将1-10的数字打印到控制台
	// for(var n1=1; n1<=10; n1++){
	// 		console.log(n1);
	// }
	// 计算1到100的和 
	var sum=0;
	for(var n1=1; n1<=100; n1++){
		sum=sum+n1;

	}
	console.log(sum);
	</script>
</head>
<body>
	
</body>
</html>